/*
* Filename:utility.h
* Summary:declaration of some small functions such as string treating functions etc.	
*
* Author:LiuHui
* Version:0.0
* Finished time:
*/
#ifndef UTILITY_H
#define UTILITY_H
void ParseMessage(const char *buf, struct MessageFormat *message, int sz);
int AssembleMessage(char *buf, unsigned long cmd, const char *appmess, int size_of_appmess);
int ConstructMessageWithFile(char *append_buf, const char *convert_message, const char *convert_filename);
gchar *ConvertFrom(const gchar *str);
gchar *ConvertTo(const gchar *str);
char *strnchr(const char *s, int ch, size_t n);
#endif
